(function() {
    'use strict';
    angular
        .module('milkbeeApp')
        .factory('MyComment', MyComment);
    angular
    .module('milkbeeApp').filter('convertHTML', ['$sce',function ($sce) {
        return function (input) {
            return $sce.trustAsHtml(input);
        }
    }]);
    
    MyComment.$inject = ['$resource', 'DateUtils'];

    function MyComment ($resource, DateUtils) {
        var resourceUrl =  'api/my/comment';

        return $resource(resourceUrl, {}, {
            'query': { method: 'GET', isArray: true}
        });
    }
})();